<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html  xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="x-ua-compatible" content="ie=7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>左部</title>
<link href="/webvote/pages/style/left.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
     function showClass(ob){
     //window.alert(ob);
     var a=document.getElementsByTagName("a");
     for(var i=0; i<a.length; i++)   
     {   
  		 //window.alert(a[i].id);
  		 //if(a[i].id!='xx'||a[i].id!='bq'){//保证是导航栏中的超链接
  		    if(a[i].id==ob){
  		       document.getElementById(a[i].id).className='maue-li';//设置背景色
  		    }
  		    else{
  		       document.getElementById(a[i].id).className='';//先将选中的设置背景色
  		    }
  		 //}
  	 }
   }

</script>
</head>
<body >
<div class="Main-l f-l">
          <dl>
          <dt></dt>
          <dd>${loginuser.roleinfo.rname}:${loginuser.usersName }</dd>
          </dl>
        <div id="Menu">
     	<ul id="MenuUl">
     	   <!-- 父亲菜单 -->
     		<li class="level1">
     			<div class="level1Style">
                <img src="/webvote/pages/images/indziyan.gif">${leftmenulist.mname}	
   			  </div>
     			<ul class="MenuLevel2">
     					<!-- 孩子菜单-->
						<c:forEach var="cmenu" items="${leftmenulist.childMenuList}">
						<li class="level2">
							<div class="level2Style">
						<c:choose>
									<c:when test="${leftcmenu.mid eq cmenu.mid}">
									    
									    <a href="/webvote/${cmenu.murl}" target="manFrame"  id="${cmenu.mid}_o"  name="zpzw" class="maue-li" onclick="showClass('${cmenu.mid}_o');">${cmenu.mname }</a>
									</c:when>
									<c:otherwise>
									    <a href="/webvote/${cmenu.murl}" target="manFrame"  id="${cmenu.mid}_o" name="zpzw"   onclick="showClass('${cmenu.mid}_o');">${cmenu.mname }</a>
									</c:otherwise>
			            </c:choose>
			            </div>
						</li>
			            </c:forEach>
					</ul>
     		</li>
     	</ul>
     <div class="banquan">
     版本：<a id="bq" href="mainframe.jsp" target="manFrame" onclick="showClass('bq');">V2012.0.1</a>
     </div>
     </div>
     </div>
</body></html>
